package behavior.state.impl;

import behavior.state.Room;
import behavior.state.State;

public class FreeTimeState implements State {

	Room room;

	public FreeTimeState(Room room) {
		this.room = room;
	}

	public void bookRoom() {
		System.out.println("您已经成功预订了" + room.getRootId() + "号房间...");
		room.setState(room.getBookedState()); // 状态变成已经预订
	}

	public void checkInRoom() {
		System.out.println("您已经成功入住了" + room.getRootId() + "号房间...");
		room.setState(room.getCheckInState()); // 状态变成已经入住
	}

	public void checkOutRoom() {
		// 不需要做操作
	}

	public void unsubscribeRoom() {
		// 不需要做操作
	}

}
